﻿using MySql.Data;
using MySql.Data.MySqlClient;

namespace BrsdServer
{
    public class Index_tab
    {
        private int id;
        private string m_img_1;
        private string m_img1_href;
        private string m_href_1;
        private string m_href_2;
        private string m_href_3;
        MySqlDBHelper db = new MySqlDBHelper();
        MySqlDataReader dr;
        public Index_tab()
        {
            string strSql = "select *from tab_index";
            MySqlCommand cmd=db.GetSqlStringCommond(strSql);
            dr = db.ExecuteReader(cmd);
            dr.Read();
        }
        public int ID
        {
            get
            {
                return dr.GetInt32(0);
            }
        }

        public string IMG_1
        {
            get
            {
                return dr.GetString(1);
            }
        }

        public string IMG1_HREF
        {
            get
            {
                return dr.GetString(2);
            }
        }

        public string HREF_1
        {
            get
            {
                return dr.GetString(3);
            }
        }

        public string HREF_2
        {
            get
            {
                return dr.GetString(4);
            }
        }

        public string HREF_3
        {
            get
            {
                return dr.GetString(5);
            }
        }

    }
}
